package 第十章.阻塞队列.ArrayBlockingQueueTest1;

import java.util.concurrent.ArrayBlockingQueue;

public class isEmpty {

	@SuppressWarnings("unchecked")
	public static void main(String[] args) {
		ArrayBlockingQueue queue = new ArrayBlockingQueue(5);
		System.out.println(queue.isEmpty());
		queue.add("myString1");
		queue.add("myString2");
		queue.add("myString3");
		queue.add("myString4");
		System.out.println(queue.isEmpty());
	}
}
